package cn.secby.wms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.secby.common.core.annotation.Excel;
import cn.secby.common.core.web.domain.TreeEntity;

/**
 * 商品分类对象 tb_goods_category
 * 
 * @author shenkunlin
 * @date 2024-11-12
 */
public class GoodsCategory extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 分类名字 */
    @Excel(name = "分类名字")
    private String name;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 删除标识 */
    @Excel(name = "删除标识")
    private Long isDel;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }
    public void setIsDel(Long isDel) 
    {
        this.isDel = isDel;
    }

    public Long getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("parentId", getParentId())
            .append("sort", getSort())
            .append("isDel", getIsDel())
            .toString();
    }
}
